package net.garagecoders.trofeos;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.ImageButton;

public class Categorias extends Activity {
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.categorias);

		ImageButton comidaButton = (ImageButton) findViewById(R.id.comidaImage);
		comidaButton.setOnClickListener(new View.OnClickListener() {

			@Override
			public void onClick(View v) {

				Intent i = new Intent(Categorias.this, ComidaCategorias.class);
				startActivity(i);
			}
		});

		

		ImageButton transporteButton = (ImageButton) findViewById(R.id.transporteImage);
		transporteButton.setOnClickListener(new View.OnClickListener() {

			@Override
			public void onClick(View v) {

				Intent i = new Intent(Categorias.this, TransporteCategorias.class);
				startActivity(i);
			}
		});

		ImageButton historicoButton = (ImageButton) findViewById(R.id.historicoImage);
		historicoButton.setOnClickListener(new View.OnClickListener() {

			@Override
			public void onClick(View v) {

				Intent i = new Intent(Categorias.this, HistoricoCategoria.class);
				startActivity(i);
			}
		});

		ImageButton vicioButton = (ImageButton) findViewById(R.id.vidaNocturnaImage);
		vicioButton.setOnClickListener(new View.OnClickListener() {

			@Override
			public void onClick(View v) {

				Intent i = new Intent(Categorias.this, VidaNocturnaCategorias.class);
				startActivity(i);
			}
		});

		ImageButton negocioButton = (ImageButton) findViewById(R.id.negocioImage);
		negocioButton.setOnClickListener(new View.OnClickListener() {

			@Override
			public void onClick(View v) {

				Intent i = new Intent(Categorias.this, Trofeos.class);
				startActivity(i);
			}
		});

		ImageButton entretenimientoButton = (ImageButton) findViewById(R.id.entretenimientoImage);
		entretenimientoButton.setOnClickListener(new View.OnClickListener() {

			@Override
			public void onClick(View v) {

				Intent i = new Intent(Categorias.this, EntretenimientoCategorias.class);
				startActivity(i);
			}
		});

	}
}
